package com.example.newproject_overseas.model.entity

import android.provider.ContactsContract.RawContacts.Data
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmType

/**
 * 订单列表
 * */


data class  GetOrderRequestBody(
val status: Any?,
val pageNo: Int = 1,
val pageSize: Int = 10
)
//这是请求体
data class GetOrderRequest(
    val query:GetOrderRequestBody
)

data class  GetOrder(
    val id: String,
    val amount: Double,
    val status: String,
    val statusNote: String,
    val created: String,
    val term: Int,
    val termUnit: String,
    val delayAmount: Double,
    val product: Product
)

data class Product(
    val name: String,
    val icon: String,
    val term: String,
    val amount: String
)
//这是最后封装的  完整体
data class OrderResponse(
    val page: PageInfo,
    val status: Int,
    val message: String,
    val extra: Any?,
    val time: Long,
    val maxAge: Long
)


data class PageInfo(
    val number: Int,
    val numberOfElements: Int,
    val totalElements: Int,
    val totalPages: Int,
    val content: List<Order>
)
//data class product(
//    val name:String, //产品名称
//    val icon:String,//产品图标
//    val term:String,//产品周期
//    val amount:String,//产品金额
//)
//data class content(
//    val id:String,//订单编号
//    val amount: Double,//订单金额
//    val status:Int,//订单状态:NEW-审批中、PASS-审批通过、DENY-审批拒绝、LOAN_SUCCESS-放款成功、LOAN_FAIL-放款失败、DUNNING-逾期、FINISH-结清",
//    val statusNote:String,//状态描述
//    val created:Data,//申请时间
//    val term:Int, //借款周期
//    val termUnit:String,//周期单位：DAY-天,MONTH-月
//    val delayAmount:Double,//展期金额
//    val product:List<product>,
//)
//
//data class page(
//    val number:Int,//当前页码
//    val numberOfElements:Int,//每页记录数
//    val totalElements:String,//总记录数
//    val totalPages:String,//总页数
//    val content:List<content>
//)
//
//data class GetOrder(
//    val page: page,
//    val status:Int,//0-成功，其他为失败，当为1012时，要让用户跳转登录，重新登录
//    val message:String,//状态描述，如：失败原因
//    val extra: Any,
//    val time:Long,
//    val maxAge:Long,
//
//    )

